package com.spring.cn.config.spel;

/**
 * @author liangd
 * date 2020-11-13 16:15
 * code
 */
public class PersonBean {
    /**
     * 姓名
     */
    private String name;
    /**
     * 引用AddressBean的city属性
     */
    private String city;
    /**
     * 引用carBean的price属性，根据price确定info
     * price > 300000 ? 金领：白领
     */
    private String info;
    /**
     * 车
     */
    private CarBean carBean;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public CarBean getCarBean() {
        return carBean;
    }

    public void setCarBean(CarBean carBean) {
        this.carBean = carBean;
    }

    @Override
    public String toString() {
        return "PersonBean{" +
                "name='" + name + '\'' +
                ", city='" + city + '\'' +
                ", info='" + info + '\'' +
                ", carBean=" + carBean +
                '}';
    }
}
